package cn.wxq.daily.empdailymgforserve;

import cn.wxq.daily.empdailymgforserve.domain.Administrative;
import cn.wxq.daily.empdailymgforserve.domain.Vacation;
import cn.wxq.daily.empdailymgforserve.utils.JwtUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

@SpringBootApplication
//@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
@MapperScan("cn.wxq.daily.empdailymgforserve.mapper")
public class EmpdailymgforserveApplication {

    public static void main(String[] args) {
        SpringApplication.run(EmpdailymgforserveApplication.class, args);
    }

    @Bean
    public BCryptPasswordEncoder bcryptPasswordEncoder() {
        return new BCryptPasswordEncoder();
    }

    @Bean
    public JwtUtil jwtUtil() {
        return new JwtUtil();
    }

    @Bean
    public Administrative Administrative(){
        return new Administrative();
    }
}
